
include ../../Makefile.Res
Version:=2.0
ModuleName:=Artichow

Object:=$(ModuleName).tgz
ObjectDir:=$(ModuleName)-php5
ObjectSource:=$(ModuleName)-$(Version)-alpha-php5.tar.gz
Tool:=$(ObjectDir)

.PHONY:all test clean dist_clean

all:$(Object)

$(Object):$(ObjectSource)
	mkdir -p usr/local/apache2/htdocs/
	rm usr/local/apache/htdocs/* -rf
	tar xzf $(ObjectSource)
	cp -rf $(ObjectDir) usr/local/apache2/htdocs/
	find usr/local/apache2/htdocs/$(ObjectDir) -name "*.php" -exec encode {} \;
	/bin/tar czf $(Object) usr

test:$(Object)
	/usr/bin/scp $(Object) 192.168.1.200:/packages
	/usr/bin/scp $(Object) 192.168.1.200:/ldisk/upgrade/
	/usr/bin/ssh 192.168.1.200 /bin/tar xzf /packages/$(Object)

clean:
	rm -rf $(Object) usr *.tgz $(ObjectDir)
dist_clean:clean
	rm -rf tags *.tar.gz
